package com.fishery.processing.client;

import com.fishery.entity.Result;
import com.fishery.processing.entity.client.OrderVo;
import com.fishery.processing.handler.OrderClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author run
 * @since 2021/2/6 17:01
 */
@FeignClient(value = "fishery-order-service", fallback = OrderClientFallback.class)
public interface OrderClient {

    @PutMapping("/order")
    public Result createOrder(@RequestBody OrderVo orderVo);
}
